String clazzTpl({package}) => """
import 'actions.dart';
import 'package:$package/store/redux/redux.dart';
import 'package:$package/store/theme/theme_state.dart';
import 'package:$package/store/app_config/app_config_state.dart';

AppConfigState _appConfigReducer(AppConfigState state, dynamic action) {
  if (action is! Action) return state;
  switch (action.type) {
    case ActionsType.updateAppconfigType:
      return state.copyWith(appDebug: action.data);
  }
  return state;
}

ThemeState _themeReducer(ThemeState state, dynamic action) {
  if (action is! Action) return state;
  switch (action.type) {
    case ActionsType.updateThemeType:
      return state.copyWith(type: action.data);
  }
  return state;
}

final appConfigStateReducer =
    combineReducers<AppConfigState>([_appConfigReducer]);

final themeStateReducer = combineReducers<ThemeState>([_themeReducer]);
""";
